<?php
$plugin->load_plugin_lang();

$post_var_receive = retrieve(POST,'test', '');
if($post_var_receive!='')
{
	$Sql->query_inject("INSERT INTO phpboost_plugin_quizz_qcm (test) VALUES ('".$post_var_receive."')",__LINE__,__FILE__);
	$last_id = $Sql->insert_id("SELECT MAX(id) FROM php_boost_plugin_quizz_qcm");
	
	$plugin->save_module($last_id);
}

$tpl = new Template_plugin('course/plugin/quizz_qcm/templates/admin/index.tpl');

$tpl->assign_vars(array(
	'TEST_VAR_LANG'=>$LANG['test'],
	'ACTION_FORM'=>$currentLink."index",
	'CONFIRM'=>$LANG['confirm_message'],
));

$tpl->parse();
?>